package com.example.ioc.beanfactoryaware;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.context.annotation.Configuration;

/**
 * Description
 *
 * @author tcwong
 * @date 2022/7/24
 * Since 1.8
 */
@Configuration
public class DefaultBeanFactory implements BeanFactoryAware {

    private BeanFactory defaultBeanFactory;

    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        defaultBeanFactory = beanFactory;

    }
}
